/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.7;
}

/* =========================
   HEADER
========================= */

header {
    height: 100vh;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
url("file:///C|/Users/alpia/OneDrive - EDUETATFR/images/banniere.jpg");

    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero {
    max-width: 900px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
}

/* =========================
   NAVIGATION
========================= */

nav {
    background-color: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
}

nav a {
    display: block;
    padding: 18px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #D3F108;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 50px;
    color: #222;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #d4af37;
    display: block;
    margin: 15px auto 0;
}

/* =========================
   BIOGRAPHIE
========================= */

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about p {
    margin-bottom: 15px;
    text-align: justify;
}

/* =========================
   PARCOURS
========================= */

.timeline {
    max-width: 900px;
    margin: auto;
}

.timeline-item {
    background: #fff;
    margin-bottom: 25px;
    padding: 25px;
    border-left: 5px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item h3 {
    margin-bottom: 10px;
    color: #111;
}

/* =========================
   GALERIE
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =========================
   CONTACT
========================= */

.contact-form {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d4af37;
}

.contact-form button {
    background-color: #d4af37;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #b8941b;
}

/* =========================
   FOOTER
========================= */

footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 30px;
}

footer p {
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 992px) {

    .hero h1 {
        font-size: 3rem;
    }

    .about {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {

    nav ul {
        flex-wrap: wrap;
    }

    nav li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 8%;
    }

    .section-title {
        font-size: 2rem;
    }
}